import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.ImageIcon;
import javax.swing.Box;
import javax.swing.JTextArea;
import javax.swing.JDesktopPane;


public class NMMWindow {

	private JFrame frame;
	private JFrame rulesFrame;
	private JTextField txtGameBoardHere;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					NMMWindow window = new NMMWindow();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public NMMWindow() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 450, 300);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JPanel panel = new JPanel();
		frame.getContentPane().add(panel, BorderLayout.NORTH);
		
		JButton btnNewGame = new JButton("New Game");
		btnNewGame.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.out.println("New Game was clicked.");

				
			}
		});
		panel.add(btnNewGame);
		
		JButton btnRules = new JButton("Rules");
		btnRules.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				
				System.out.println("Rules was clicked.");
				
				rulesFrame = new JFrame();
				rulesFrame.setVisible(true);
				
			}
		});
		panel.add(btnRules);
		
		JButton btnLeaderBoard = new JButton("Leader Board");
		btnLeaderBoard.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				
				System.out.println("Leader Board was clicked.");

			}
		});
		panel.add(btnLeaderBoard);
		// this is what i changd
		JPanel panel_1 = new JPanel();
		frame.getContentPane().add(panel_1, BorderLayout.CENTER);
		panel_1.setLayout(null);
		
		txtGameBoardHere = new JTextField();
		txtGameBoardHere.setText("\tGame Board Here");
		txtGameBoardHere.setBounds(26, 11, 398, 218);
		panel_1.add(txtGameBoardHere);
		txtGameBoardHere.setColumns(10);
	}
}
